package com.ruoyi.civil.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.civil.mapper.CivilEnginneeringSpecialInspectionMapper;
import com.ruoyi.civil.domain.CivilEnginneeringSpecialInspection;
import com.ruoyi.civil.service.ICivilEnginneeringSpecialInspectionService;

/**
 * 专项检查Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
@Service
public class CivilEnginneeringSpecialInspectionServiceImpl implements ICivilEnginneeringSpecialInspectionService 
{
    @Autowired
    private CivilEnginneeringSpecialInspectionMapper civilEnginneeringSpecialInspectionMapper;

    /**
     * 查询专项检查
     * 
     * @param specialInspectionId 专项检查主键
     * @return 专项检查
     */
    @Override
    public CivilEnginneeringSpecialInspection selectCivilEnginneeringSpecialInspectionBySpecialInspectionId(Long specialInspectionId)
    {
        return civilEnginneeringSpecialInspectionMapper.selectCivilEnginneeringSpecialInspectionBySpecialInspectionId(specialInspectionId);
    }

    /**
     * 查询专项检查列表
     * 
     * @param civilEnginneeringSpecialInspection 专项检查
     * @return 专项检查
     */
    @Override
    public List<CivilEnginneeringSpecialInspection> selectCivilEnginneeringSpecialInspectionList(CivilEnginneeringSpecialInspection civilEnginneeringSpecialInspection)
    {
        return civilEnginneeringSpecialInspectionMapper.selectCivilEnginneeringSpecialInspectionList(civilEnginneeringSpecialInspection);
    }

    /**
     * 新增专项检查
     * 
     * @param civilEnginneeringSpecialInspection 专项检查
     * @return 结果
     */
    @Override
    public int insertCivilEnginneeringSpecialInspection(CivilEnginneeringSpecialInspection civilEnginneeringSpecialInspection)
    {
        return civilEnginneeringSpecialInspectionMapper.insertCivilEnginneeringSpecialInspection(civilEnginneeringSpecialInspection);
    }

    /**
     * 修改专项检查
     * 
     * @param civilEnginneeringSpecialInspection 专项检查
     * @return 结果
     */
    @Override
    public int updateCivilEnginneeringSpecialInspection(CivilEnginneeringSpecialInspection civilEnginneeringSpecialInspection)
    {
        return civilEnginneeringSpecialInspectionMapper.updateCivilEnginneeringSpecialInspection(civilEnginneeringSpecialInspection);
    }

    /**
     * 批量删除专项检查
     * 
     * @param specialInspectionIds 需要删除的专项检查主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringSpecialInspectionBySpecialInspectionIds(Long[] specialInspectionIds)
    {
        return civilEnginneeringSpecialInspectionMapper.deleteCivilEnginneeringSpecialInspectionBySpecialInspectionIds(specialInspectionIds);
    }

    /**
     * 删除专项检查信息
     * 
     * @param specialInspectionId 专项检查主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringSpecialInspectionBySpecialInspectionId(Long specialInspectionId)
    {
        return civilEnginneeringSpecialInspectionMapper.deleteCivilEnginneeringSpecialInspectionBySpecialInspectionId(specialInspectionId);
    }
}
